﻿using AutoMapper;
using TianShu.SysParameterSetting.Service.Abstracts.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TianShu.SysParameterSetting.Service.Attachment.MapperConfig
{
    public class SystemParameterSettingProfile : Profile
    {
        public SystemParameterSettingProfile()
        {

            CreateMap<TianShu.SysParameterSetting.DAL.Abstracts.Entities.SystemParameterSetting, SystemParameterSettingListOutput>();
            CreateMap<SystemParameterSettingCreateUpdateInput, TianShu.SysParameterSetting.DAL.Abstracts.Entities.SystemParameterSetting>()
            .ForMember(e => e.CreationTime, opt => opt.Ignore())
            .ForMember(e => e.CreatorId, opt => opt.Ignore())
            .ForMember(e => e.LastModificationTime, opt => opt.Ignore())
            .ForMember(e => e.LastModifierId, opt => opt.Ignore())
            .ForMember(e => e.DeleterId, opt => opt.Ignore())
            .ForMember(e => e.DeletionTime, opt => opt.Ignore())
            .ForMember(e => e.IsDeleted, opt => opt.Ignore())
            .ForMember(e => e.Id, opt => opt.Ignore())
            .ForMember(e => e.TenantId, opt => opt.Ignore());
        }
    }
}
